#$configure terminal
#$gpon
<% if(type == 'vlan-profile'){ -%>
<% if(mode == 'tag'){ -%>
#$onu profile vlan <%=name%> tag-mode <%=mode%> cvlan <%=cvlan%> pri 0
:|#$ENTER
<%}-%>
<% if(mode == 'vlan-stacking'){ -%>
#$onu profile vlan <%=name%> tag-mode <%=mode%> svlan <%=svlan%> cvlan <%=cvlan%> pri 0
:|#$ENTER
<%}-%>
<%}-%>
<% if(type == 'ip-profile'){ -%>
#$onu profile ip <%=name%> gateway <%=gateway%>
:|#$ENTER
<%}-%>
<% if(type == 'sip-profile'){ -%>
#$onu profile sip <%=name%> proxy <%=proxy%>
:|#$ENTER
#$onu profile sip <%=name%> registrar <%=registrar%>
:|#$ENTER
<%}-%>
#$exit